<?php

class Application_Form_Click extends Zend_Form
{
    public function init()
    {
        $this->setName('Click');

        $banner_id = new Zend_Form_Element_Hidden('banner_id');
        $banner_id->setLabel('banner_id')
                				->addFilter('Int');

        $zone_id = new Zend_Form_Element_Text('zone_id');
        $zone_id->setLabel('zone_id')         
              					->addFilter('Int');
                         
        $page_id = new Zend_Form_Element_Text('page_id');
        $page_id->setLabel('page_id')           
               					->addFilter('Int');
                                          
        $clicked_date = new Zend_Form_Element_Text('clicked_date');
        $clicked_date->setLabel('clicked_date')
               ->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
               
        $ip = new Zend_Form_Element_Text('ip');
        $ip->setLabel('ip')
        		->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
        					  
       $from_url = new Zend_Form_Element_Text('from_url');
       $from_url->setLabel('from_url')
        		->setRequired(true)
               ->addFilter('StripTags')
               ->addFilter('StringTrim')
               ->addValidator('NotEmpty');
        					  
               
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setAttrib('id', 'submitbutton');

        $this->addElements(array($banner_id, $zone_id, $page_id, $clicked_date,$ip,$from_url,$submit));
    }
}